<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
    <body>
<div class="row-fluid">
				<div class="box span12">
					<div class="box-header">
						<h2><i class="icon-edit"></i>编辑TAG</h2>
						<div class="box-icon"></div>
					</div>
					<div class="box-content">
              <?php if($sf_user->hasFlash('error')): ?>
              <div class="alert alert-error">
                      <button type="button" class="close" data-dismiss="alert">×</button>
                      <strong>错误！</strong>  <?php echo $sf_user->getFlash('error'); ?>
              </div>
              <?php endif; ?>
              <?php if($sf_user->hasFlash('success')): ?>
              <div class="alert alert-success">
                      <button type="button" class="close" data-dismiss="alert">×</button>
                      <strong>操作成功！</strong> <?php echo $sf_user->getFlash('success'); ?>
              </div>
              <?php endif; ?>
                                          
                                            <form class="form-horizontal" action="<?php echo url_for('worry/create_tags'); ?>" method="post" >
						  <fieldset>
							<div class="control-group ">
								<label class="control-label" for="focusedInput">TAGS</label>
								<div class="controls">
								  <input class="input-xlarge focused" name="tags" type="text" value="<?php echo $worry_tags; ?>" />
                                                                  <input  name="worry_id" type="hidden" value="<?php echo $worry_id; ?>" />
                                                                  <span class="help-inline">TAG以逗号分割</span>
								</div>
							  </div>
                                                      <div class="form-actions">
							  <input type="submit" class="btn btn-primary" value="保存数据" />
                                                      </div>
						  </fieldset>
						</form>
					</div>
				</div><!--/span-->

			</div>
<script type="text/javascript">
<?php if($sf_user->hasFlash('success')): ?>
layer.msg('<?php echo $sf_user->getFlash('success'); ?>',{time: 1000},function(){
  parent.window.location.reload();  
});
<?php endif; ?>
        </script>
    </body>
</html>